package com.wang.lotterysystem.controller.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ActivityUserStatusEnum {
    INIT(1,"初始化"),
    COMPLETED(2,"已被抽取");
    private Integer code;
    private String message;
    public static ActivityUserStatusEnum checkForName(String name){
        for (ActivityUserStatusEnum activityUserStatusEnum : ActivityUserStatusEnum.values()) {
            if (activityUserStatusEnum.name().equalsIgnoreCase(name)){
                return activityUserStatusEnum;
            }
        }
        return null;
    }
}